﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="IdeasLista.aspx.cs" Inherits="MisIdeas.Ideas.IdeasLista" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="gvIDeas" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BackColor="White" BorderColor="#336666" 
        BorderStyle="Double" BorderWidth="3px" CellPadding="4" DataKeyNames="MI_IdeaID" 
        DataSourceID="odsIdeas" GridLines="Horizontal" Width="100%">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="True">
            <ItemStyle Width="200px" />
            </asp:CommandField>
            <asp:BoundField DataField="MI_IdeaID" HeaderText="MI_IdeaID" 
                SortExpression="MI_IdeaID" Visible="False" />
            <asp:BoundField DataField="MI_Nombre" HeaderText="Nombre" 
                SortExpression="MI_Nombre" />
            <asp:BoundField DataField="MI_Objetivos" HeaderText="Objetivos" 
                SortExpression="MI_Objetivos" />
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" Text="Ver Idea" NavigateUrl='<%# Bind("MI_IdeaID", "/Ideas/VerIdea.aspx?ID={0}") %>' />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#333333" />
        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="White" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#487575" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#275353" />
    </asp:GridView>
    <br />
    <br />
    <asp:Panel ID="Panel1" runat="server">
        <asp:Label ID="lblNombre" runat="server" Text="Nombre:" />
        <asp:TextBox ID="txtNombre" runat="server" />
        <br />
        <asp:Label ID="lblObjetivos" runat="server" Text="Objetivos:" />
        <asp:TextBox ID="txtObjetivos" runat="server" TextMode="MultiLine" Width="300px" />
        <br />
        <asp:Button ID="btnCargarNuevo" runat="server" Text="Cargar Nuevo" 
            onclick="btnCargarNuevo_Click" />
    </asp:Panel>
    <asp:ObjectDataSource ID="odsIdeas" runat="server" 
        DataObjectTypeName="BLLMisIdeas.MI_Idea" DeleteMethod="EliminarIdea" 
        InsertMethod="CargarIdea" SelectMethod="TraerIdeas" 
        TypeName="BLLMisIdeas.BLLIdeas" UpdateMethod="ModificarIdea"></asp:ObjectDataSource>
</asp:Content>
